#include<bits/stdc++.h>
using namespace std;
int main(){
     freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    long long n,a[100001];
    long long sum=0;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    for(int i=1;i<=n;i++){
        for(int j=1;j<=n;j++){
            if(a[i]<=a[j]){
                sum=sum;
            }
            if(a[i]>a[j]){
                sum=sum+1;
                break;
            }
        }
    }
    cout<<n-sum<<endl;
    return 0;
}
